<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
</head>
<body>
  <p>openid：{$openid}</p>
  <p>昵称：{$userinfo.nickname}</p>
  <p>性别：
    {if condition="$userinfo['sex'] eq 1"}
    先生
    {elseif condition="$userinfo['sex'] eq 2" /}
    女士
    {else /}
    未知
    {/if}
  </p>
  <p>
    <img src="{$userinfo.headimgurl}" width="200" height="200" alt="">
  </p>
</body>
</html>